package com.icinfo.cloud.provider.punish.ucase.punishexecute.mapper;

import com.icinfo.cloud.provider.punish.ucase.punishexecute.model.CaseDelayInstallmentPayFine;
import com.icinfo.framework.mybatis.mapper.common.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @Description 申请延期（分期）缴纳罚款mapper接口
 * @Author mahan
 * @Date 2022/9/20
 * @Version 1.0
 */
public interface CaseDelayInstallmentMapper extends Mapper<CaseDelayInstallmentPayFine> {

    /**
     * 获取决定书送达日期
     * @param caseId
     * @param cfjdsKindCode
     * @return
     */
    Date selectJdsSdDate(@Param("caseId") String caseId, @Param("cfjdsKindCode") String cfjdsKindCode);

    /**
     * 查询案件是否已经有正在审核，以及审核通过的记录
     * @param caseId
     * @param partyId
     * @param yqfqTzsKindCode
     * @return
     */
    int selectDelayInstallmentDocAuditPassPendingCount(@Param("caseId") String caseId, @Param("partyId") String partyId, @Param("yqfqTzsKindCode") String yqfqTzsKindCode);

    /**
     * 查询案件是否已经有审核通过的记录
     * @param caseId
     * @param partyId
     * @param yqfqTzsKindCode
     * @return
     */
    int selectDelayInstallmentDocAuditPassCount(@Param("caseId") String caseId, @Param("partyId") String partyId, @Param("yqfqTzsKindCode") String yqfqTzsKindCode);
}
